import ShopScene  from "../scene/ShopScene"

const screenWidth = window.innerWidth;
const screenHeight = window.innerHeight;


export default class Director {
    constructor (ctx) {
        this.currentIndex = 0;
        this.ctx = ctx; // 主屏的ctx
        this.ShopScene = new ShopScene(ctx);
    }


    static getInstance () {
        if (!Director.instance) {
            Director.instance = new Director();
        }
        return Director.instance;
    }

   
    showShopScene (ctx) {
        this.ShopScene.draw(ctx);
    }

}